Integrand size = 33, antiderivative size = 182 \[ \int \frac {A+B \sec (c+d x)}{\sqrt {\cos (c+d x)} (a+a \sec (c+d x))^3} \, dx=-\frac {(9 A+B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{10 a^3 d}+\frac {(3 A+B) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{6 a^3 d}-\frac {(A-B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d (a+a \cos (c+d x))^3}-\frac {(6 A-B) \sqrt {\cos (c+d x)} \sin (c+d x)}{15 a d (a+a \cos (c+d x))^2}+\frac {(9 A+B) \sqrt {\cos (c+d x)} \sin (c+d x)}{10 d \left (a^3+a^3 \cos (c+d x)\right )} \]
[Out]
Time = 0.57 (sec) , antiderivative size = 182, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {3033, 3056, 3057, 2827, 2720, 2719} \[ \int \frac {A+B \sec (c+d x)}{\sqrt {\cos (c+d x)} (a+a \sec (c+d x))^3} \, dx=\frac {(3 A+B) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{6 a^3 d}-\frac {(9 A+B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{10 a^3 d}+\frac {(9 A+B) \sin (c+d x) \sqrt {\cos (c+d x)}}{10 d \left (a^3 \cos (c+d x)+a^3\right )}-\frac {(A-B) \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d (a \cos (c+d x)+a)^3}-\frac {(6 A-B) \sin (c+d x) \sqrt {\cos (c+d x)}}{15 a d (a \cos (c+d x)+a)^2} \]
[In]
[Out]
Rule 2719
Rule 2720
Rule 2827
Rule 3033
Rule 3056
Rule 3057
Rubi steps \begin{align*} \text {integral}& = \int \frac {\cos ^{\frac {3}{2}}(c+d x) (B+A \cos (c+d x))}{(a+a \cos (c+d x))^3} \, dx \\ & = -\frac {(A-B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d (a+a \cos (c+d x))^3}+\frac {\int \frac {\sqrt {\cos (c+d x)} \left (-\frac {3}{2} a (A-B)+\frac {1}{2} a (9 A+B) \cos (c+d x)\right )}{(a+a \cos (c+d x))^2} \, dx}{5 a^2} \\ & = -\frac {(A-B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d (a+a \cos (c+d x))^3}-\frac {(6 A-B) \sqrt {\cos (c+d x)} \sin (c+d x)}{15 a d (a+a \cos (c+d x))^2}+\frac {\int \frac {-\frac {1}{2} a^2 (6 A-B)+\frac {1}{2} a^2 (21 A+4 B) \cos (c+d x)}{\sqrt {\cos (c+d x)} (a+a \cos (c+d x))} \, dx}{15 a^4} \\ & = -\frac {(A-B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d (a+a \cos (c+d x))^3}-\frac {(6 A-B) \sqrt {\cos (c+d x)} \sin (c+d x)}{15 a d (a+a \cos (c+d x))^2}+\frac {(9 A+B) \sqrt {\cos (c+d x)} \sin (c+d x)}{10 d \left (a^3+a^3 \cos (c+d x)\right )}+\frac {\int \frac {\frac {5}{4} a^3 (3 A+B)-\frac {3}{4} a^3 (9 A+B) \cos (c+d x)}{\sqrt {\cos (c+d x)}} \, dx}{15 a^6} \\ & = -\frac {(A-B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d (a+a \cos (c+d x))^3}-\frac {(6 A-B) \sqrt {\cos (c+d x)} \sin (c+d x)}{15 a d (a+a \cos (c+d x))^2}+\frac {(9 A+B) \sqrt {\cos (c+d x)} \sin (c+d x)}{10 d \left (a^3+a^3 \cos (c+d x)\right )}+\frac {(3 A+B) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{12 a^3}-\frac {(9 A+B) \int \sqrt {\cos (c+d x)} \, dx}{20 a^3} \\ & = -\frac {(9 A+B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{10 a^3 d}+\frac {(3 A+B) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{6 a^3 d}-\frac {(A-B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d (a+a \cos (c+d x))^3}-\frac {(6 A-B) \sqrt {\cos (c+d x)} \sin (c+d x)}{15 a d (a+a \cos (c+d x))^2}+\frac {(9 A+B) \sqrt {\cos (c+d x)} \sin (c+d x)}{10 d \left (a^3+a^3 \cos (c+d x)\right )} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
Time = 4.37 (sec) , antiderivative size = 379, normalized size of antiderivative = 2.08 \[ \int \frac {A+B \sec (c+d x)}{\sqrt {\cos (c+d x)} (a+a \sec (c+d x))^3} \, dx=-\frac {\sqrt {\cos (c+d x)} \csc ^5(c+d x) \left (-252 A+252 B-360 A \cos (c+d x)+360 B \cos (c+d x)+504 A \cos ^2(c+d x)-504 B \cos ^2(c+d x)+420 A \cos ^3(c+d x)-420 B \cos ^3(c+d x)-420 A \cos ^4(c+d x)+420 B \cos ^4(c+d x)+42 A \sin ^2(c+d x)-322 B \sin ^2(c+d x)-280 B \cos (c+d x) \sin ^2(c+d x)+105 A \sin ^4(c+d x)+35 B \sin ^4(c+d x)+35 (3 A+B) \operatorname {Hypergeometric2F1}\left (\frac {1}{4},\frac {1}{2},\frac {5}{4},\cos ^2(c+d x)\right ) \sin ^4(c+d x) \sqrt {\sin ^2(c+d x)}+280 B \cos (c+d x) \operatorname {Hypergeometric2F1}\left (\frac {3}{4},\frac {5}{2},\frac {7}{4},\cos ^2(c+d x)\right ) \sin ^4(c+d x) \sqrt {\sin ^2(c+d x)}+360 A \cos (c+d x) \operatorname {Hypergeometric2F1}\left (\frac {3}{4},\frac {7}{2},\frac {7}{4},\cos ^2(c+d x)\right ) \sin ^4(c+d x) \sqrt {\sin ^2(c+d x)}-360 B \cos (c+d x) \operatorname {Hypergeometric2F1}\left (\frac {3}{4},\frac {7}{2},\frac {7}{4},\cos ^2(c+d x)\right ) \sin ^4(c+d x) \sqrt {\sin ^2(c+d x)}+105 B \sin ^2(2 (c+d x))\right )}{210 a^3 d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(450\) vs. \(2(218)=436\).
Time = 9.94 (sec) , antiderivative size = 451, normalized size of antiderivative = 2.48
method | result | size |
default | \(-\frac {\sqrt {\left (2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \left (108 A \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{8}+30 A \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{5} \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1}\, \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+54 A \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{5} \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1}\, \operatorname {EllipticE}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+12 B \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{8}+10 B \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{5} \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1}\, \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+6 B \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{5} \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1}\, \operatorname {EllipticE}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-198 A \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}-2 B \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}+114 A \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}-24 B \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}-27 A \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+17 B \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+3 A -3 B \right )}{60 a^{3} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{5} \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, d}\) | \(451\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.10 (sec) , antiderivative size = 465, normalized size of antiderivative = 2.55 \[ \int \frac {A+B \sec (c+d x)}{\sqrt {\cos (c+d x)} (a+a \sec (c+d x))^3} \, dx=\frac {2 \, {\left (3 \, {\left (9 \, A + B\right )} \cos \left (d x + c\right )^{2} + 2 \, {\left (18 \, A + 7 \, B\right )} \cos \left (d x + c\right ) + 15 \, A + 5 \, B\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 5 \, {\left (\sqrt {2} {\left (3 i \, A + i \, B\right )} \cos \left (d x + c\right )^{3} + 3 \, \sqrt {2} {\left (3 i \, A + i \, B\right )} \cos \left (d x + c\right )^{2} + 3 \, \sqrt {2} {\left (3 i \, A + i \, B\right )} \cos \left (d x + c\right ) + \sqrt {2} {\left (3 i \, A + i \, B\right )}\right )} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) - 5 \, {\left (\sqrt {2} {\left (-3 i \, A - i \, B\right )} \cos \left (d x + c\right )^{3} + 3 \, \sqrt {2} {\left (-3 i \, A - i \, B\right )} \cos \left (d x + c\right )^{2} + 3 \, \sqrt {2} {\left (-3 i \, A - i \, B\right )} \cos \left (d x + c\right ) + \sqrt {2} {\left (-3 i \, A - i \, B\right )}\right )} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) - 3 \, {\left (\sqrt {2} {\left (9 i \, A + i \, B\right )} \cos \left (d x + c\right )^{3} + 3 \, \sqrt {2} {\left (9 i \, A + i \, B\right )} \cos \left (d x + c\right )^{2} + 3 \, \sqrt {2} {\left (9 i \, A + i \, B\right )} \cos \left (d x + c\right ) + \sqrt {2} {\left (9 i \, A + i \, B\right )}\right )} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) - 3 \, {\left (\sqrt {2} {\left (-9 i \, A - i \, B\right )} \cos \left (d x + c\right )^{3} + 3 \, \sqrt {2} {\left (-9 i \, A - i \, B\right )} \cos \left (d x + c\right )^{2} + 3 \, \sqrt {2} {\left (-9 i \, A - i \, B\right )} \cos \left (d x + c\right ) + \sqrt {2} {\left (-9 i \, A - i \, B\right )}\right )} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right )}{60 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )}} \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \sec (c+d x)}{\sqrt {\cos (c+d x)} (a+a \sec (c+d x))^3} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {A+B \sec (c+d x)}{\sqrt {\cos (c+d x)} (a+a \sec (c+d x))^3} \, dx=\int { \frac {B \sec \left (d x + c\right ) + A}{{\left (a \sec \left (d x + c\right ) + a\right )}^{3} \sqrt {\cos \left (d x + c\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {A+B \sec (c+d x)}{\sqrt {\cos (c+d x)} (a+a \sec (c+d x))^3} \, dx=\int { \frac {B \sec \left (d x + c\right ) + A}{{\left (a \sec \left (d x + c\right ) + a\right )}^{3} \sqrt {\cos \left (d x + c\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \sec (c+d x)}{\sqrt {\cos (c+d x)} (a+a \sec (c+d x))^3} \, dx=\int \frac {A+\frac {B}{\cos \left (c+d\,x\right )}}{\sqrt {\cos \left (c+d\,x\right )}\,{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^3} \,d x \]
[In]
[Out]